package com.mapper;

import com.domain.Permission;
import com.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    int selectForCournt(QueryObject qo);

    List<Permission> selectLimitList(QueryObject qo);
    void selectByRoleId(Long rid);

    List<String> selectAllExpression();
    List<String> selectExpByEmpId(@Param("eid")Long eid);
}